import { http } from '@/utils/http'

export interface Achievement {
  achievementId: number
  createTime: string
  createUserId: number
  id: number
  number: string
  planId: number
  status: number
  updateTime: string | null
  updateUserId: number
  userId: number
  achievementTitle: string
  frontImg: string
}

/* 我的成就 */
export const getAchievements = (): Promise<IResData<Achievement[]>> => {
  return http.get<Achievement[]>('/api/MP/GetMyAchievementList')
}
